<?php
/**
 * Note:     [Description]
 * Author:   longhui.huang <1592328848@qq.com>
 * DateTime: 2024/1/24 12:33
 */
declare(strict_types=1);

namespace App\HttpController\Admin;

use App\HttpController\ApiBase;

class AdminBase extends ApiBase
{
    protected function onRequest(?string $action): ?bool
    {
        $isOk = parent::onRequest($action);
        if (!$isOk) {
            return $isOk;
        }

        $noAuthUri = [];
        $currentUri = $this->_request->server('request_uri');
        if (in_array($currentUri, $noAuthUri)) {
            return true;
        }

        // check token

        return true; // TODO: Change the autogenerated stub
    }
}
